package cate.common.table.res.hoard.row;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import easy.java.dev.note.NoteField;

public class HoardTypeRow extends ERow {
    @NoteField("原型ID")
    public int protoId;

    @NoteField("秘藏经验")
    public int hoardExp;

    @NoteField("基础属性")
    public String attrStr;

    @NoteField("当前星级")
    public int star;

    @NoteField("到下下一星所需碎片数目")
    public String consumeStr;

    @NoteField("任务ID")
    public int taskId;

    @NoteField("次数基础")
    public int numBase;

    @NoteField("上限次数")
    public int numMax;

    @NoteField("单次属性加成")
    public String addAttrStr;

    @Override
    public void parse(XSSFRowWrap xrw) {
        super.parse(xrw);
        id = xrw.getInteger("ID");
        protoId = xrw.getInteger("原型ID");
        hoardExp = xrw.getInteger("秘藏经验");
        attrStr = xrw.getString("基础属性", "");
        star = xrw.getInteger("当前星级");
        consumeStr = xrw.getString("到下下一星所需碎片数目", "");
        taskId = xrw.getInteger("任务ID");
        numBase = xrw.getInteger("次数基础");
        numMax = xrw.getInteger("上限次数");
        addAttrStr = xrw.getString("单次属性加成", "");
    }
}
